const routes = [
  {
    path: "/",
    name: "登录",
    component: () => import("@/views/login/index.vue"),
    meta: {
      title: "登录"
    }
  },
  {
    path: "/login",
    name: "登录",
    component: () => import("@/views/login/index.vue"),
    meta: {
      title: "登录"
    }
  },
  {
    path: "/gift",
    name: "礼品册",
    component: () => import("@/views/gift/index.vue"),
    meta: {
      title: "礼品册"
    }
  },
  {
    path: "/detail",
    name: "商品详情",
    component: () => import("@/views/detail/index.vue"),
    meta: {
      title: "商品详情"
    }
  },
  {
    path: "/exchange",
    name: "兑换",
    component: () => import("@/views/exchange/index.vue"),
    meta: {
      title: "兑换"
    }
  },
  // 订单列表
  {
    path: "/order",
    name: "订单",
    component: () => import("@/views/order/index.vue"),
    meta: {
      title: "我的订单"
    }
  }
];

export default routes;
